<template>
  <div class="app-container">
    <el-card shadow="never" class="mb-3">
      <el-form ref="searchFormRef" :inline="true" class="mt-2.5" label-width="auto">
        <el-form-item prop="username" label="当天值班人">
          <el-input model-value="张三、李四" />
        </el-form-item>
        <el-form-item>
          <el-button type="primary">确定</el-button>
        </el-form-item>
        <!-- <br> -->
        <el-divider />
        <el-form-item prop="username" v-for="(item, index) in s1" :key="index" :label="item">
          <el-input placeholder="请输入" />
        </el-form-item>
        <el-form-item>
          <el-button type="primary">查询</el-button>
          <el-button>重置</el-button>
        </el-form-item>
      </el-form>
    </el-card>
    <el-card shadow="never" class="">
      <!-- <div class="toolbar-wrapper mb-3">
        <el-button type="primary">新建维修保养记录</el-button>
      </div> -->
      <div class="flex">
        <el-tabs model-value="first" class="flex-1">
          <el-tab-pane label="待处理" name="first"></el-tab-pane>
          <el-tab-pane label="已处理" name="first2"></el-tab-pane>
        </el-tabs>
        <el-button type="primary">新建反馈</el-button>
      </div>
      <el-table :data="tableData">
        <!-- <el-table-column type="selection" width="50" align="center" /> -->
        <el-table-column type="index" label="序" width="50" />
        <el-table-column v-for="(item, index) in s1" :key="index" :label="item" :prop="'name' + index" />
        <el-table-column fixed="right" label="操作" align="center">
          <el-button type="primary" text bg size="small">详情</el-button>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script setup>
const s1 = [
  '反馈单号',
  '反馈内容',
  '反馈部门',
  '反馈人',
  '联系电话',
  '发起时间',
  '解决时间',
  '当前状态',
  '处理人',
  '备注',
]
const tableData = [
  {
    name0: "324482",
    name1: "领料单错误",
    name2: "生产部",
    name3: "张三",
    name4: "13689239999",
    name5: "2024-04-06 09:42:43",
    name6: "2024-04-06 09:42:43",
    name7: "已解决",
    name8: "李四",
  },
]
</script>
<style lang="scss" scoped></style>
